package com.test.shiyan3;

public class Yuan {
    private double r;
    public final double PI = 3.14;
    public Yuan(double r){
        this.r = r;
    }
    public double mj(){
        return PI * r *r;
    }
    public double zc(){
        return 2*PI*r;
    }
}
